package com.yesun.task.pipeline.service.impl;

import com.yesun.task.pipeline.domain.po.JobLogPO;
import com.yesun.task.pipeline.repository.JobLogRepository;
import com.yesun.task.pipeline.service.JobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JobLogServiceImpl implements JobLogService {

    @Autowired
    JobLogRepository jobLogRepository;

    @Override
    public JobLogPO findByJobNameAndExecuteDate(String jobName, String executeDate) {
        return jobLogRepository.findByJobNameAndExecuteDate(jobName, executeDate);
    }

    @Override
    public JobLogPO save(JobLogPO jobLogPO) {
        return jobLogRepository.save(jobLogPO);
    }
}
